gl renderer: Save some matrix multiplications
authorTimm Bäder <mail@baedert.org>
Sat, 6 Oct 2018 07:23:26 +0000 (09:23 +0200)
committerTimm Bäder <mail@baedert.org>
Thu, 11 Oct 2018 10:27:56 +0000 (12:27 +0200)
commitd15df65a9d78a7cfd40bbdbde604582a4032b5e9
tree069c6d2b3a4367a0bc5c63c9635369cb1ad60393
parente0a1311e5b0c7f0456934c14902d0b622766bfc7
gl renderer: Save some matrix multiplications

We do this for every single node, which is a little costly, especially
since the common case for the modelview matrix these days is a simple
translation. So, check whether the new modelview matrix is only a
translation matrix and if so, don't do a full matrix multiplication per
node.
gsk/gl/gskglrenderer.c
gsk/gl/gskglrenderops.c
gsk/gl/gskglrenderopsprivate.h